package org.zxyj.system.domain;

import org.zxyj.core.entity.TreeEntity;
import org.zxyj.system.type.ResourceTarget;
import org.zxyj.system.type.ResourceType;

/**
 * 资源
 * 
 * @author zhaoyong
 * @version 2016年2月18日
 */
public class Resource extends TreeEntity<Resource> {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -289610467421733482L;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 资源类型
	 */
	private ResourceType resourceType;

	/**
	 * url
	 */
	private String url;

	/**
	 * 目标： _blank、_self、_parent、_top、frame
	 */
	private ResourceTarget target;

	/**
	 * 图标
	 */
	private String icon;

	/**
	 * 权限标识
	 */
	private String privilege;

	/**
	 * 是否显示
	 */
	private String isShow;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ResourceType getResourceType() {
		return resourceType;
	}

	public void setResourceType(ResourceType resourceType) {
		this.resourceType = resourceType;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public ResourceTarget getTarget() {
		return target;
	}

	public void setTarget(ResourceTarget target) {
		this.target = target;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getPrivilege() {
		return privilege;
	}

	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}

	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}

}